package sctu.edu.java.year2016.team03.zhaoyong.day20160522.chapter4_2;

/**
 * 应用for循环打印菱形
 * Created by zhaoyong on 2016/5/23.
 */
public class wowo {
    public static void main(String[] args) {
        int a = 5;
        for (a = 1; a <= 5; a++) {
            if (a == 1 || a == 5)
                System.out.println("  *  ");
            else {
                if (a == 2 || a == 4)
                    System.out.println(" *** ");
                else
                    System.out.println("*****");
            }
        }
    }
}
